package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.NewsEntity;
import com.bl.weilan.dao.model.ReportEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ReportRepository extends JpaRepository<ReportEntity, String> {
    Page<ReportEntity> findByOrderByWeightDesc(Pageable pageable);
    Page<ReportEntity> findByTitleLike(String title, Pageable pageable);
}
